package org.ddd.specification.jpa.conversion;

import org.ddd.specification.Specification;
import org.ddd.specification.jpa.JpaSpecification;

public class JpaSpecificationConverterImpl implements JpaSpecificationConverter {

    /**
     * {@inheritDoc}
     */
    @Override
    public <X> JpaSpecification<X> makeQueryable(Specification<X> specification) {
        final Class<?> specificationClass = specification.getClass();
        return findConversion(specificationClass).makeQueryable(specification);
    }

    private JpaSpecificationConversionReference findConversion(Class<?> specificationClass) {
        return null;
    }

}
